import request from '@/utils/request'

export function fetchMarketApiMaskList(data) {
  return request({
    url: '/system/marketapimask/MarketApiMask/list',
    method: 'post',
    data
  })
}

export function getMarketApiMask(id) {
  return request({
    url: '/system/marketapimask/MarketApiMask/detail/' + id,
    method: 'get'
  })
}

export function createMarketApiMask(data) {
  return request({
    url: '/system/marketapimask/MarketApiMask/add',
    method: 'post',
    data
  })
}

export function updateMarketApiMask(data) {
  return request({
    url: '/system/marketapimask/MarketApiMask/update',
    method: 'post',
    data
  })
}

export function deleteMarketApiMask(ids) {
  return request({
    url: '/system/marketapimask/MarketApiMask/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportMarketApiMask(data) {
  return request({
    url: '/system/marketapimask/MarketApiMask/export',
    method: 'post',
    data
  })
}
